<?php

namespace app\store\service;

use app\store\model\IntegralInterval;

class IntegralIntervalService
{
    public function getIntegralIntervalList()
    {   
        $store_id = session('store_id');

        $model = new IntegralInterval();
        $integralInterval = $model->withOutField('desc')->where('store_id',$store_id)->select();
        
        return  $integralInterval;
        
    }

    public function getIntegralIntervalOptions()
    {
        $store_id = session('store_id');

        $model = new IntegralInterval();
        $integralInterval = $model->field('id,interval_name')->where('store_id',$store_id)->select();

        return  $integralInterval;

    }


    public function findIntegralInterval($id)
    {
        $model = new IntegralInterval();
        $integralInterval = $model->withOutField('create_time,update_time')->find($id);
    
        
        return  $integralInterval;
        
    }

    
}